/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Converter;

/**
 *
 * @author iron
 */
public class Variaveis {
    public static int BRANCO   = 1;
    public static int PRETO    = 2;
    public static int PARDO    = 3;
    public static int AMARELO  = 4;
    public static int INDIGENA = 5; 
    
    public static int SOLTEIRO   = 1;
    public static int CASADO     = 2;
    public static int SEPARADO   = 3;
    public static int DIVORCIADO = 4;
    public static int VIUVO      = 5;
    
    public static int SEMINSTRUCAO           = 1;
    public static int FUNDAMENTALINCOMPLETO  = 2;
    public static int FUNDAMENTALCOMPLETO    = 3;
    public static int MEDIOINCOMPLETO        = 4;
    public static int MEDIOCOMPLETO          = 5;
    public static int SUPERIORINCOMPLETO     = 6;
    public static int SUPERIORCOMPLETO       = 7;



    public static int getVariavel(String var){
    
        if(var.equals("Branco") || var.equals("Solteiro(a)")||var.equals("Sem Instrução"))
            return 1;
        if(var.equals("Preto")||var.equals("Casado(a)")||var.equals("Fundamental Incomp."))
            return 2;
        if(var.equals("Pardo")||var.equals("Separado(a)")||var.equals("Fundamental Compl."))
            return 3;
        if(var.equals("Amarelo")||var.equals("Divorciado(a)")||var.equals("Médio Incompl."))
            return 4;
        if(var.equals("Indígena")||var.equals("Viúvo(a)")||var.equals("Médio Compl."))
            return 5;
        if(var.equals("Superior Incompl."))
            return 6;
        else return 7;        
    }
}
